from selenium import webdriver

if __name__ == "__main__":
    url = 'http://weibo.com/ttarticle/p/show?id=2309404020700624096846'
    driver = webdriver.Chrome('G:\Program Files\chromedriver.exe')
    driver.get(url)
    url = 'http://m.weibo.cn/2723620723/E8ODT8Ydl'

    comment_list = driver.find_elements_by_class_name('mod-media')
    for comment in comment_list:
        print(comment.get_attribute('href'))
